<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>创建合同</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="../../css/oksub.css">
<script type="text/javascript" src="../../lib/loading/okLoading.js"></script>
</head>
<body>
<div class="ok-body"> 
  <!--form表单-->
  <form class="layui-form layui-form-pane ok-form">
    <blockquote class="layui-elem-quote">
      <p>创建合同</p>
    </blockquote>
    <div class="layui-form-item">
      <label class="layui-form-label">合同名称</label>
      <div class="layui-input-block">
        <input type="text" name="title" placeholder="请输入合同名称" autocomplete="off" class="layui-input" lay-verify="required">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">合同编号</label>
      <div class="layui-input-block">
        <input type="text" name="label" placeholder="请输入合同编号" autocomplete="off" class="layui-input" lay-verify="required">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">签署截止期限</label>
      <div class="layui-input-block">
        <select name="classify">
          <option value="0">永久</option>
          <option value="1">七天</option>
        </select>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">合同有效期</label>
      <div class="layui-input-block">
        <input type="text" name="label" placeholder="请输入合同有效期" autocomplete="off" class="layui-input" lay-verify="required">
      </div>
    </div>
    <div class="ok-body" style="padding: 0px; padding-bottom: 20px;">
      <textarea id="editor" style="display: none;">
            <p>请输入内容</p>
      </textarea>
    </div>
    <div class="layui-form-item">
      <div class="layui-input-block">
        <button class="layui-btn" lay-submit lay-filter="updateArticle">立即提交</button>
        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
      </div>
    </div>
  </form>
</div>
<!--js逻辑--> 
<script src="../../lib/layui/layui.js"></script> 
<script type="text/javascript">
        layui.use(["layedit"], function () {
            let $ = layui.jquery;
            let layedit = layui.layedit;

            let index = layedit.build("editor");

            $("#contentBtn").click(function () {
                alert(layedit.getContent(index));
            });

            $("#textBtn").click(function () {
                alert(layedit.getText(index));
            });

            $("#selectionBtn").click(function () {
                alert(layedit.getSelection(index));
            });
        });
    </script> 
<!--js逻辑-->
</body>
</html>
